package com.duomi.lang;

@SuppressWarnings("WeakerAccess")
public class DuomiEvalException extends RuntimeException{
    public DuomiEvalException() {
    }

    public DuomiEvalException(String message) {
        super(message);
    }

    public DuomiEvalException(String message, Lexer.Token token) {
        super(message);
        Utils.printSrcContext(token.source, token.row, token.column);
    }

    public DuomiEvalException(String message, Throwable cause) {
        super(message, cause);
    }
}
